<?php
/**
 * Created by PhpStorm.
 * User: Cao
 * Date: 09/10/2014
 * Time: 13:46
 */
class logout extends CI_Controller
{
    function __construct(){
        parent::__construct();
        $this->load->helper("url");
    }
    function index(){
        $this->session->unset_userdata('user_id');
        $sess_id = $this->session->userdata('user_id');
        if ($sess_id)
        {
            echo " Chưa Loguot được";
        }
        else{
        redirect('admincp/FistController', 'refresh');
        }
    }
}